#include<bits/stdc++.h>
#define y1 Y1
#define fi first
#define endl "\n"
#define se second
#define PI acos(-1)
#define int long long
#define pb(x) push_back(x)
#define PII pair<int, int>
#define Yes cout << "Yes\n";
#define No cout << "No\n";
#define YES cout << "YES\n";
#define NO cout << "NO\n";
#define _for(i, a, b) for(int i = a; i <= b; ++i)
#define IOS ios::sync_with_stdio(false),cin.tie(0),cout.tie(0)
using namespace std;

const int N = 2e5 + 10;
int a[N], sum[N];

signed main() {
	IOS;
	int n, p, q, r;
	cin >> n >> p >> q >> r;
	_for(i, 1, n) {
		cin >> a[i];
		sum[i] = sum[i - 1] + a[i];
	}  
	for(int i = 1, j = 1; i <= n; ++i) {
	//	cout << "ii = " << i << endl;
		while(sum[i] - sum[j - 1] > p )j++;
		if(sum[i] - sum[j - 1] == p) {
			cout << "i = " << i << endl; 
			for(int k = i; k <= n; ++k) {
				cout << " k =  " << k << endl;
				while(sum[k] - sum[i - 1] > q)i++;
				if(sum[k] - sum[i - 1] == q) {
					for(int l = k; l <= n; ++l) {
						while(sum[l] - sum[k - 1] > r)k++;
						if(sum[l] == sum[k - 1] == r) {
							Yes;
							return 0;
						}
					}
				}
			}
		}
	}
	No;
	return 0;
}

